package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)//链式编程
public class City implements Serializable {

  //标记主键，并且设置主键的添加类型为自动增加
  //标记主键便于后面的主键回填
  @TableId(type = IdType.AUTO)
  private Integer id;
  private String cityName;
  private String cityPinyin;
  private Integer hotalNumber = 0;
  private Date createTime;
  private Integer status = 0;

}
